/*
 * ConceptualCouponBO.java
 *
 * Created on March 5, 2007, 4:23 PM
 *
 */

package edu.byu.isys413.jjenkins.data;

 /**
 * This is called coneptual coupon because it represents a coupon that can be applies
 * to serveal transactionlines.
 *
 * The class is represents the coupon business object. It is created
 * by the couponDAO. It extends businessObject which contains the ID,
 * alreadyInDatabase and dirty. This class contains the attributes of the coupon
 * with all getters and setters and any functionality of the object. 
 * 
 * @author      Jeff Jenkins
 * @version     1.0
 * 
 */
public class ConceptualCouponBO extends BusinessObject{
    
    /**
     * amount of coupon
     */
    private double amount = 0;
    
    /** Creates a new instance of ConceptualCouponBO */
    public ConceptualCouponBO() {
    }
    
    /**
     * This method returns the amount of the coupon
     * @return amount of coupon
     */
    public double getAmount() {
        return amount;
    }
    
    /**
     * This method gets the amount of the coupon
     * @param amount amount of coupon
     */
    public void setAmount(double amount) {
        this.amount = amount;
        setDirty(true);
    }

    
}
